from pydantic import BaseModel, Field
from datetime import datetime
from typing import Optional


class FeedbackCreate(BaseModel):
    student_id: str = Field(..., description="学生学号")
    content: str = Field(..., description="反馈内容", max_length=1024)


class FeedbackOut(BaseModel):
    id: str
    student_id: str
    content: str
    created_at: datetime
    status: int


class FeedbackUpdateStatus(BaseModel):
    status: int = Field(..., ge=0, le=1, description="状态：0未处理，1已处理")
